<?php

/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/12/6 10:41
 * Desc: 产品管理
 */
class Model_Product
{
    /**
     * 预订确认方式数组
     */
    const CONFIRM_TYPE_NAME = array(
        0 => '无需确认',
        1 => '支付后确认',
        2 => '支付前确认'
    );

    /**
     * 获取确认方式名称
     * @param $confirm_type
     * @return string
     */
    public static function get_confirm_type_name($confirm_type)
    {
        $confirm_type_name = self::CONFIRM_TYPE_NAME;
        return $confirm_type_name[$confirm_type] ?? '';
    }
}